//
//  fold.swift
//  EnglishDictionary
//
//  Created by mac on 2024/3/3.
//

import UIKit

class Fold:VHLSQLiteObject {
    required public init() {

    }
    public var pkid: Int?
    @objc public var fold: String?
    public var parentFold: String?
}
// 根据条件查询骑行记录数据
extension Fold {
    static func getFolds() -> [Fold]? {
        if let rows = try? Fold.rows() {
            return rows
        }
        return nil
     }
    
    static func getFolds(parentFold:String) -> [Fold]? {
        if let rows = try? Fold.rows(filter: "parentFold ='\(parentFold)'") {
            return rows
        }
        return nil
     }
}
